/**
 * 把所有子模块的reducers在此合并
 */

import { combineReducers } from 'redux';
import undoable from 'redux-undo';
import editorHistoryReducers from './editorHistory/reducers';
import btnAuthReducers from './btnAuth/reducers';
import menuReducers from './menu/reducers';
import userReducers from './user/reducers';

const rootReducer = combineReducers( {
	btnAuth: btnAuthReducers,
	menu: menuReducers,
	editorHistory: undoable( editorHistoryReducers ),
	user: userReducers,
} );
export default rootReducer;
